package cn.edu.sgu.www.mhxysy.service.waiguan.impl;

import cn.edu.sgu.www.mhxysy.entity.waiguan.ShizhuangType;
import cn.edu.sgu.www.mhxysy.mapper.waiguan.ShizhuangTypeMapper;
import cn.edu.sgu.www.mhxysy.service.waiguan.ShizhuangTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ShizhuangTypeServiceImpl implements ShizhuangTypeService {

    private final ShizhuangTypeMapper shizhuangTypeMapper;

    @Autowired
    public ShizhuangTypeServiceImpl(ShizhuangTypeMapper shizhuangTypeMapper) {
        this.shizhuangTypeMapper = shizhuangTypeMapper;
    }

    @Override
    public List<ShizhuangType> selectAll() {
        return shizhuangTypeMapper.selectList(null);
    }

    @Override
    public ShizhuangType selectById(Integer id) {
        return shizhuangTypeMapper.selectById(id);
    }

}